<!DOCTYPE html>

<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>宽带组 : 实验室成员</title>

  <link href="../../css/bootstrapmin.css" rel="stylesheet" media="screen">
  <link href="../../css/style.css" rel="stylesheet">
 <script type="text/javascript" src="../../js/header.js"></script>



  
</head>

<body>

	<!-- header -->
   <div id ="top_img">
	 <img src="../../img/top_img.png"></img>
		<script type="text/javascript">
$(function(){
$('#top_menu > li').hover(function(){ //hover是鼠标悬浮，click是鼠标点击。
$(this).addClass('current').siblings('li').removeClass('current');
$('#top_menu > li > ul').hide();
$(this).find('ul').show();
}) 
})
</script>
<!--  -->
		<ul id = "top_menu">
			<li>&nbsp;&nbsp;&nbsp;<a href="../../index.php">实验室主页</a></li>
			<li><a href="../../People.php">实验室成员</a></li>
			<li><a href="#?">学术成果</a>
				<ul>
					<li><a href="../../allPapers.php?action=full_list&number_per_page=64&order=5&page_index=1">所有成果</a></li>
					<li><a href="../../Achievement.html">搜索</a></li>
					<li><a href="../../unpublishedPaperManage.html">未发表</a></li></ul></li>
			<li><a href="../../Conference.html">期刊会议</a></li>
			<li><a href="../Weekly.php">周报</a></li>
			<li><a href="#?">公共资源</a></li>
		</ul>
</div>
<!-- end of header -->

<div id= "achievement">
<?php
	require("../../DBops.php");
	session_start();
	$con = connect("localhost", "root", "", "lab");
	$result = query($con, "*", "personalinfo", "ID", $_SESSION['user']);
	$row = mysql_fetch_array($result);
	
	
	if(isset($_SESSION['user']))
	{
		echo "<div style='height:30px;background:#A4D3EE;'>
		      
              <p  style='margin-right:10px;float:right;'>登录为: <a href = \"../../infor.php?id=".$_SESSION['user']."\">".$_SESSION['user']."</a></font>&nbsp&nbsp
			  <a  onclick=\"if(confirm('确定要退出系统吗?')){parent.location.href ='../../logout.php'}\" href=\"javascript:void(0)\">退出</a></font></p></div>";
	}
	else
	{
		echo "<div style='height:30px;background:#A4D3EE;'>
				<ul>
              <li  style='margin-right:100px;float:right;'><a href ='../../login.php'>登录</a></div>";
	}

echo "<div id= \"achievement\" style=\"height:500px;\">

<div style=\"width:560px;height:500px;margin-left:25px;z-index:10px;backgroud-color:pink;\">
    
	   <br/><br/>
<form action=\"saveCR.php?type=edit\"  method=\"post\" name=\"\" >";
	
	//require("DBops.php");
	//session_start();
	//$con = connect("localhost", "root", "", "lab");
	$ID=$_GET['id'];

	$result = query($con, "*", "weeklyreport", "ID", $ID);
	$r = mysql_fetch_array($result);
	
	while(true)
	{
		$row = $r;
		$r = mysql_fetch_array($result);
		
		if(!$r)
		{
			break;
		}
	}
	
		echo "<p><strong>已完成工作:</strong></p>
	<!--	<textarea name=\"havadone\" cols=\"45\" rows=\"1\" readonly=\"true\" style=\"width:150px;\">已完成工作:</textarea><br/>-->
	
		<textarea name=\"havedonevalue\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['completed']."</textarea>
		<p><strong>未完成工作:</strong></p>
		<textarea name=\"notyetvalue\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['uncompleted']."</textarea>
		<p><strong>工作计划:</strong></p>		
		<textarea name=\"plan\" cols=\"90\" rows=\"4\" wrap=\"physical\" style=\"width:500px;\" >".$row['plan']."</textarea><br/>";
?>
	
	<input type="submit" value="提交"><br/>



	
<br/>
</form>
</div>
</div>
</body>

</html>
